//
//  GiftModel.m
//  xiuqu
//
//  Created by shuihulu02 on 2016/11/30.
//  Copyright © 2016年 ASASDA. All rights reserved.
//

#import "GiftModel.h"

@implementation GiftModel
- (id)initWithDict:(NSDictionary *)dict
{
    if (self = [super init]) {
        self.CreateTime = dict[@"CreateTime"];
        self.Id = [dict[@"Id"] integerValue];
        if ([dict[@"Img"] isKindOfClass:[NSNull class]]) {
            self.Img = @"";
        }else{
            self.Img = dict[@"Img"];
        }
        if ([dict[@"MoveImgUrl"] isKindOfClass:[NSNull class]]) {
            self.MoveImg = @"";
        }else{
            self.MoveImg = dict[@"MoveImg"];
        }
        self.Name = dict[@"Name"];
        self.Price = [dict[@"Price"] floatValue];
        self.SortNumber = [dict[@"SortNumber"] integerValue];
//        self.Status = [dict[@"Status"] integerValue];
        self.Type = [dict[@"Type"] integerValue];

    }
    return self;
}

@end
